/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package newpackage;

/**
 *
 * @author nguyenquang
 */
public class DVDShop {
    private int quantity;
    private double total;

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getTotal(){
        if(quantity>5)
            return quantity*10 - (quantity*10*5/100);
        else
            return quantity*10;
    }
}
